<!--  -->
<template>
  <div>{{ id ? "修改" : "添加" }}
   {{ id }}
  </div>
</template>

<script lang='ts' setup>
import { reactive,toRefs,ref,onMounted} from 'vue'
import {useRoute} from 'vue-router'
const route=useRoute();
const id=ref(route.params.id)

console.log(id.value);


</script>
<style scoped>
</style>